package org.example.web.controller;

import org.example.domain.City;
import org.example.service.ICityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * @author 李新雨的项目86176
 * @version 1.0
 * @date 2024-12-06 8:37
 */
@Controller
public class CityController {

    @Autowired
    private ICityService cityService;

    @RequestMapping("/city11")
    @ResponseBody
    public List<City> city(){
        return cityService.selectAllCity();
    }


}
